package com.git.hui.yinshua.api.model.order;

import lombok.Getter;

/**
 * 交易流水状态：1-交易成功,2-转入退款,3-未支付,4-已关闭,5-已撤销（付款码支付）,6-用户支付中（付款码支付）,7-支付失败(其他原因，如银行返回失败),8-退款成功，9-退款处理中，10-退款关闭，11-退款异常
 *
 * @author YiHui
 * @date 2024/6/20
 */
@Getter
public enum TradeStatusEnum {
    INIT(0, "初始状态"),
    PAY_SUCCEED(1, "交易成功"),
    REFUND(2, "转退款"),
    NOT_PAY(3, "未支付"),
    CLOSE(4, "已关闭"),
    CANCEL(5, "已撤销"),
    PAYING(6, "支付中"),
    FAIL(7, "支付失败"),
    REFUND_SUCCEED(8, "退款成功"),
    REFUNDING(9, "退款中"),
    REFUND_CLOSE(10, "退款关闭"),
    REFUND_ERROR(11, "退款异常")
    ;


    private Integer status;
    private String desc;

    TradeStatusEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }
}
